package libra.custom;

import java.util.Map;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Sentinel整合Gateway - 自定义BlockRequestHandler
 */
@RestController
@RequestMapping("config")
public class TestConfigController {
	String from = getClass().getSimpleName();
	
	// 测试自定义BlockRequestHandler
	@RequestMapping("selfBlock")
	public Object selfBlock() {
		return Map.of("from", from, "method", "selfBlock");
	}
}
